package cn.baage.campus.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description: Minio 配置参数
 * @Author: 八阿哥
 * @url: baage.cn
 * @Version: 1.0
 **/
@ConfigurationProperties(prefix = "minio")
@Component
@Data
public class MinioProperties {
    private String endpoint;
    private String accessKey;
    private String secretKey;
    private String bucketName;

    public String getBaseAccessUrl() {
        return String.format("%s/%s", endpoint, bucketName);
    }
}